package com.yunhuakeji.wddx.control;

import java.io.InputStream;

import com.yunhuakeji.wddx.impl.IMHome;
import com.yunhuakeji.wddx.impl.IMReport;
import com.yunhuakeji.wddx.service.ReportService;
import com.yunhuakeji.wddx.utils.ResultUtil;

public class BGController extends ActionTicketSupport
{
	private static final long serialVersionUID = 1L;

	private InputStream inputStream;
	private String callback,rm_xq;
	
	public BGController() throws Exception
	{
		super();
	}
	
	
	
	public String getCJForPcDefault(){
			inputStream = new ResultUtil().resultString(callback, new IMHome().getCJForPcDefault(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}
	
	public String getScores()
	{
			inputStream = new ResultUtil().resultString(callback, new IMReport().getScores(this.getUserid(),rm_xq,this.getTicket()));
		return SUCCESS;
	}
	
	public String getReportByCostOptions()
	{
		inputStream = new ResultUtil().resultString(callback, new ReportService().getReportByCostOptionsWithPc(this.getUserid(), this.getTicket()));
		
		return SUCCESS;
	}
	
	public String getReportByCost()
	{
			inputStream = new ResultUtil().resultString(callback, new ReportService().getReportByCostWithPc(this.getUserid(), rm_xq,this.getTicket()));
		return SUCCESS;
	}

	public String getReportByBorrowing()
	{
		inputStream = new ResultUtil().resultString(callback, new ReportService().getReportByBorrowingWithPc(this.getUserid(),this.getTicket()));
		
		return SUCCESS;
	}

	public InputStream getInputStream()
	{
		return inputStream;
	}


	public void setInputStream(InputStream inputStream)
	{
		this.inputStream = inputStream;
	}


	public String getCallback()
	{
		return callback;
	}


	public void setCallback(String callback)
	{
		this.callback = callback;
	}


	public static long getSerialversionuid()
	{
		return serialVersionUID;
	}


	public String getRm_xq()
	{
		return rm_xq;
	}


	public void setRm_xq(String rm_xq)
	{
		this.rm_xq = rm_xq;
	}

}
